$(function(argument) {
	// 进入页面直接渲染的商品
	$.ajax({
		url: 'http://www.teaweilai.com/app/Admin/AppAreaSell/AreaSellCate',
		// http://www.teaweilai.com/app/admin/Appbanner/BannerShow
		type: 'post',
		async: true,
		dataType: 'json',
		data: {},
		success: function(data) {
			console.log(data);
			var $htmlAll = template('wholesale', {
				fenlei: data
			});
			$(".container").html($htmlAll);
		}
	})

	// 点击商品
	$(document).on("click", ".goods", function() {
		var gid = $(this).eq(0).attr('data-goods_id');
		window.sessionStorage.setItem("gid", gid);
		console.log(window.sessionStorage.getItem("gid"));
		window.location.href = "tea_detail.html";
	})

})